import request from '@/utils/request'

// 查询实验室评测列表
export function listLabEvalution(query) {
  return request({
    url: '/evalution/labEvalution/list',
    method: 'get',
    params: query
  })
}

// 查询实验室评测详细
export function getLabEvalution(evalutionId) {
  return request({
    url: '/evalution/labEvalution/' + evalutionId,
    method: 'get'
  })
}

// 新增实验室评测
export function addLabEvalution(data) {
  return request({
    url: '/evalution/labEvalution',
    method: 'post',
    data: data
  })
}

// 修改实验室评测
export function updateLabEvalution(data) {
  return request({
    url: '/evalution/labEvalution',
    method: 'put',
    data: data
  })
}
//commitEvalution
export function commitEvalution(data) {
  return request({
    url: '/evalution/labEvalution/commit',
    method: 'post',
    data: data
  })
}

// 删除实验室评测
export function delLabEvalution(evalutionId) {
  return request({
    url: '/evalution/labEvalution/' + evalutionId,
    method: 'delete'
  })
}

// 导出实验室评测
export function exportLabEvalution(query) {
  return request({
    url: '/evalution/labEvalution/export',
    method: 'get',
    params: query
  })
}